<#include '/share.include'>
package ${basepackage}.bean;

import io.swagger.annotations.ApiModelProperty;
import java.util.Date;



/**
 * ${table.remarks}
 * @author ${author}
 * @date ${.now?datetime}
 */
public class ${className} extends BaseEntity {

	<#list columns as column>
		<#if validateBack='true'>
			${column.hibernateValidatorExprssion}</#if>
			<#if column.columnNameFirstLower='youxbz'>
				private Integer youxbz=IS_YOUXBZ_TRUE; // 有效标志：1、有效;0、无效
			<#else>
			//@ApiModelProperty("${column.remarks}")
			private ${column.possibleShortJavaType} ${column.columnNameFirstLower};  // ${column.remarks}
		</#if>
	</#list>

<@generateConstructor className/>
<@generateJavaColumns/>

	@Override
	public String toString() {
		return "{" +
		<#list columns as column>
			<#if column.possibleShortJavaType == "Integer" || column.isDateTimeColumn >
		"${column.columnNameFirstLower}=" + ${column.columnNameFirstLower}<#sep>+","+
			<#else>
		"${column.columnNameFirstLower}='" + ${column.columnNameFirstLower}<#sep> + '\''+","+
			</#if>
		</#list>+'}';
	}
	


}

<#macro generateJavaColumns>
<#list columns as column>
		/**
		 * 获取${column.remarks}
		 */
		public ${column.possibleShortJavaType  } get${column.columnName}() {
			return this.${column.columnNameFirstLower};
		}
		/**
		 * 设置${column.remarks}
		 */
		public void set${column.columnName}(${column.possibleShortJavaType  } value) {
			this.${column.columnNameFirstLower} = value;
		}
	</#list>
		/**
		 * 获取有效标志
		 * 返回Boolean类型
		 */
		public Boolean getDeleted() {
			return youxbz!=null&&youxbz !=IS_YOUXBZ_FALSE;
		}
		/**
		 * 是否删除，Boolean类型，只是将有效标志设置为无效。
		 */
		public void setDeleted(Boolean del) {
			this.youxbz = del!=null&&del ? IS_YOUXBZ_FALSE : IS_YOUXBZ_TRUE;
		}

</#macro>

